<?php
if(empty($db_host) || empty($db_user)) { ec("No DB user / host setup in config.php file"); }
else {
$conn = mysql_connect($db_host, $db_user, $db_pass) or die ('Error connecting to MySQL');
mysql_select_db($db_name) or die ('Error selecting DB');
}
?>
